//
//  SetProposalViewController.m
//  BGM
//
//  Created by liuqin on 2018/11/28.
//  Copyright © 2018年 com.alirtc.demo. All rights reserved.
//

#import "SetProposalViewController.h"
#import "Common.h"
#import "BGMHTTP.h"
@interface SetProposalViewController ()

@end

@implementation SetProposalViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navview.hidden = NO;
    self.titleBtn.hidden = NO;
    self.view.backgroundColor = [UIColor whiteColor];
    CGRect rect = self.titleBtn.frame;
    rect.size.width = rect.size.width+70;
    self.titleBtn.frame = rect;
    [self.titleBtn setTitle:@"反馈与建议" forState:UIControlStateNormal];
    
    
    UITextView *textView = [[UITextView alloc]initWithFrame:CGRectMake(15, self.navview.frame.size.height+15, SCREENW-30, SCREENH/2-100)];
    textView.backgroundColor = [UIColor colorWithRed:244/255.0 green:244/255.0 blue:244/255.0 alpha:1];
    textView.layer.cornerRadius = 5;
    textView.layer.masksToBounds = YES;
    [self.view addSubview:textView];

    
    UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(15, textView.frame.origin.y+textView.frame.size.height+40, SCREENW-30, 50)];
    btn.backgroundColor = bgmyelloeColor;
    [btn setTitle:@"提交" forState:UIControlStateNormal];
    btn.layer.cornerRadius = 8;
    btn.layer.masksToBounds = YES;
    [btn setTitleColor:bgmmainColor forState:UIControlStateNormal];
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(clickSubmit) forControlEvents:UIControlEventTouchUpInside];
    
}
- (void)clickSubmit{
    
//    [BGMHTTP requestWithMethodName:@"users/changePhoneNum" parameters:param completion:^(BOOL success, NSError *error, NSDictionary *result) {
////        [self gotoBeForeVC];
//        NSLog(@"asdfsafas");
//    }];
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
